<template>
  <div class="tutionProcess">
    <div class="introduceImage">
      <img src="http://mobuz-mp.cdn.bcebos.com/course/tution/image/tution_process.png" lazy-load  mode="widthFix">
    </div>
  </div>
</template>

<script>
import {obtainVolitionProject} from '@/config/api'
import {dateRegExp} from '@/config/mUtils'
export default {
  data () {
    return {
      // 意志数据
      volitionData: [],
      // //  1 有数据
      // volitionState: 0
      courseStrat: ''
      
    }
  },
  mounted () {
    let self = this
    // 初始化 意志计划界面
    self.initVolitionPlan()
  },
  methods: {
    // 初始化 意志计划界面
    async initVolitionPlan(){
      let self = this;
      if(self.$root.$mp.query.stratTime){
        self.courseStrat = dateRegExp ((self.$root.$mp.query.stratTime - 0), 'yyyy年MM月dd日')
        wx.showNavigationBarLoading()
        let willPlanInfo = await obtainVolitionProject()
        console.log(willPlanInfo, '.......willPlanInfo')
        if (willPlanInfo.status === 200) {
          // 意志数据
          self.volitionData = willPlanInfo.data
          // self.volitionState = 1
        }
        wx.hideNavigationBarLoading()
        wx.stopPullDownRefresh()
      } 
    },
  }
}
</script>

<style lang="less" scoped>
.tutionProcess{
  width: 100%;
  background: #ffffff;
  position: relative;
  .introduceImage{
    width: 686rpx;
    height: auto;
    margin: 10rpx auto;
    box-shadow: 0 0 10rpx 2rpx rgba(198, 198, 198, 0.30);
    border-radius: 5rpx;
    overflow: hidden;
    img{
      width: 100%;
      height: auto;
      vertical-align: top;
    }
  }
}
</style>
